#ifndef DATA_H
#define DATA_H

/*
 * command structure
 * */
#define KMAXSIZE 256
#define KVARLENGTH 10
#define KVALLENGTH 242
/*  
 *  ENV link list head node 'name' and 'value' member must equal ENV_HEAD marco.
 * */
#define ENV_HEAD 0X44414548

struct command {
    char name[KMAXSIZE];
    int (*cmd)(int,char **);
    int argc;
    char **argv;
};
typedef struct env_var{
    char name[KVARLENGTH];
    char value[KVALLENGTH];
    struct env_var* next;
}ENV_VAR;


#define NOFOUND 0x1
#endif

